import Login from './views/Login.vue'
import NotFound from './views/404.vue'
import Home from './views/Home.vue'
import Main from './views/Main.vue'
import map from './views/project/map.vue'

let routes = [
    {
        path: '/login',
        component: Login,
        name: '',
        hidden: true
    },
    {
        path: '/404',
        component: NotFound,
        name: '',
        hidden: true
    },
    {
        meta: {
            title: 'XXXXX云平台',
        },
        path: '/',
        component: Home,
        name: 'XXXXX云平台',
        hidden: true,
        children: [
            {
                meta: {
                    title: 'XXXXX数据浏览子系统',
                },
                path: '/map',
                component: map,
                name: '首页',
                iconCls: 'el-icon-message',
            },
            {
                meta: {
                    title: 'XXXXX个人空间子系统',
                },
                path: '/personal',
                component: Main,
                name: '个人空间',
                iconCls: 'el-icon-message',
            },
            {
                meta: {
                    title: 'XXXXX分析平台',
                },
                path: '/analysis',
                component: Main,
                name: '分析平台',
                iconCls: 'el-icon-message',
            },
            {
                meta: {
                    title: 'XXXXX后台管理系统',
                },
                path: '/backend',
                component: Main,
                name: '后台管理',
                iconCls: 'el-icon-message',
            },
            {
                meta: {
                    title: 'XXXXX个人设置空间',
                },
                path: '/setup',
                component: Main,
                name: '设置',
                iconCls: 'el-icon-message',
            },
        ]
    },
    {
        path: '*',
        hidden: true,
        redirect: { path: '/404' }
    }
];

export default routes;